From: Kevin Ryde Date: Sun, 6 Dec 2009 00:41:18 +0000 (+0000) Subject: * info-look.el: Add setup for apropos-mode to use emacs-lisp-mode X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~9051 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=ad94a935a2a945c53ca335f9470d297ea80543bf;p=emacs.git * info-look.el: Add setup for apropos-mode to use emacs-lisp-mode manuals, similar to existing setup for help-mode. (My bug#3913.) --- diff --git a/lisp/info-look.el b/lisp/info-look.el index a061611aa9b..7c9c124eb39 100644 --- a/lisp/info-look.el +++ b/lisp/info-look.el @@ -861,6 +861,12 @@ Return nil if there is nothing appropriate in the buffer near point." ;; sort of fallback match scheme existed. ("(elisp)Index" nil "^ -+ .*: " "\\( \\|$\\)"))) +;; docstrings talk about elisp, so have apropos-mode follow emacs-lisp-mode +(info-lookup-maybe-add-help + :mode 'apropos-mode + :regexp "[^][()`',\" \t\n]+" ;; same as emacs-lisp-mode above + :other-modes '(emacs-lisp-mode)) + (info-lookup-maybe-add-help :mode 'lisp-interaction-mode :regexp "[^][()`',\" \t\n]+"